package com.lanyou.esb.redis.vo;

/**
 * REDIS参数配置
 * 
 * @author Davey.wu
 */
public class RedisSetting {
	/** REDIS服务器IP **/
	private String redisIp;
	/** REDIS服务器端口 **/
	private int redisPort;
	/** 最大闲置时间 **/
	private int maxIdle;
	/** 最小闲置时间 **/
	private int minIdle = 50;
	/** 最大连接数 **/
	private int maxTotal;
	/** 最大等待时间 **/
	private int maxWaitMillis;
	/** 获得一个jedis实例的时候是否检查连接可用性;如果为true,则得到的jedis实例均是可用的 **/
	private boolean testOnBorrow;
	/** 在return给pool时,是否检查连接可用性 **/
	private boolean testOnReturn;

	public String getRedisIp() {
		return redisIp;
	}

	public void setRedisIp(String redisIp) {
		this.redisIp = redisIp;
	}

	public int getRedisPort() {
		return redisPort;
	}

	public void setRedisPort(int redisPort) {
		this.redisPort = redisPort;
	}

	public int getMaxIdle() {
		return maxIdle;
	}

	public void setMaxIdle(int maxIdle) {
		this.maxIdle = maxIdle;
	}

	public int getMaxTotal() {
		return maxTotal;
	}

	public void setMaxTotal(int maxTotal) {
		this.maxTotal = maxTotal;
	}

	public int getMaxWaitMillis() {
		return maxWaitMillis;
	}

	public void setMaxWaitMillis(int maxWaitMillis) {
		this.maxWaitMillis = maxWaitMillis;
	}

	public int getMinIdle() {
		return minIdle;
	}

	public void setMinIdle(int minIdle) {
		this.minIdle = minIdle;
	}

	public boolean isTestOnBorrow() {
		return testOnBorrow;
	}

	public void setTestOnBorrow(boolean testOnBorrow) {
		this.testOnBorrow = testOnBorrow;
	}

	public boolean isTestOnReturn() {
		return testOnReturn;
	}

	public void setTestOnReturn(boolean testOnReturn) {
		this.testOnReturn = testOnReturn;
	}


}
